﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

Public Class Ban
    Public Sub New()
        DaSuDung = False
        IdDonHang = 0
        DonHangs = New List(Of DonHang)()
        'DonHang = New DonHang()
    End Sub
    <Key()>
    Public Property Id() As Int32
    <MaxLength(50)>
    <Required()>
    Public Property Ten() As String
    <Required()>
    Public Property DaSuDung() As Boolean


    Public Property IdDonHang() As System.Nullable(Of Integer)


    Public Property DonHangs() As List(Of DonHang)
End Class
